package com.yun.zf.common.app.model.home;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class RecordHouseBasicInfoMo {
    @NotNull(message = "省级区划代码不能为空")
    @ApiModelProperty(value ="省级区划代码" )
    private String provinceCode;

    @NotNull(message = "城市编码不能为空")
    @ApiModelProperty(value ="城市编码" )
    private String cityCode;

    @NotNull(message = "小区编号不能为空")
    @ApiModelProperty(value ="小区编号id" )
    private Long communityId;
    @ApiModelProperty(value ="小区名称" )
    private String community;

    @NotBlank(message = "楼栋号不能为空")
    @ApiModelProperty(value ="楼栋号" )
    private String section;


    @ApiModelProperty(value ="单元号" )
    private String unit;


    @ApiModelProperty(value ="门牌号" )
    @NotBlank(message = "门牌号不能为空")
    private String room;

    @NotBlank(message = "业主名称不能为空")
    @ApiModelProperty(value ="业主名称" )
    private String homeOwner;
    @NotBlank(message = "业主联系电话不能为空")
    @ApiModelProperty(value ="业主联系电话" )
    private String phone;
    /**
     * 类型，1出租 、2、二手房、5新房 6、商铺出租、7商铺出售 8、写字楼出租 9 写字楼出售
     */
    @NotNull(message = "房源类型不能为空")
    @ApiModelProperty(value ="房源类型" )
    private Integer type;
}
